package com.tbit.main.service.impl;

import com.tbit.main.dao.core.RoleDao;
import com.tbit.main.pojo.Role;
import com.tbit.main.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2022-07-21 15:58
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public Integer getRoleCode(Integer subRoleType) {
        return roleDao.getRoleCode(subRoleType);
    }

    @Override
    public Role getRoleId(Integer subRoleType) {
        return roleDao.getRoleId(subRoleType);
    }

    @Override
    public List<Role> selectRoleList(Role role) {
        List<Role> roles = roleDao.selectRoleList(role);
        return roles;
    }


}
